home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Memphis Amiga Group / MAG diskMAGazine (1991-04)(Memphis Amiga Group).zip / MAG diskMAGazine (1991-04)(Memphis Amiga Group).adf / UseNetQuestions < prev    next >
Text File  |  1991-03-10  |  34KB  |  718 lines

  1.  
  2. Article 179 of 179, Fri 04:39.
  3. Subject: MONTHLY POSTING: Frequently Asked Questions and Answers V1.1 
  4. (March 1991)
  5. From: ferry@chorus.fr (Ferry de Jong)
  6. Path: ncr-sd!sdd.hp.com!spool.mu.edu!uunet!mcsun!corton!chorus!ferry
  7. Newsgroups:
  8. comp.sys.amiga.introduction,comp.sys.amiga.hardware,comp.sys.amiga.pro-
  9. grammer
  10. Date: 1 Mar 91 12:39:43 GMT
  11. Sender: news@chorus.fr
  12.  
  13.  
  14.  
  15. MONTHLY POSTING: Frequently Asked Questions and Answers V1.1 (March 1991)
  16.  
  17. This article  contains  a  list  of  frequently  asked  questions  and
  18. answers.     It     is     posted     by    me    every    month    in
  19. comp.sys.amiga.introduction.
  20.  
  21. Pay attention to the version number of this article. It indicates what
  22. kind  of  changes  are  made  to the contents compared to the previous
  23. posting.
  24.  
  25. First number changed:
  26.         New questions and answers added.
  27. Second number changed:
  28.         Answers to existing questions changed or updated.
  29.  
  30.  
  31. If you have suggestions about this article, feel free to mail them  to
  32. me so I can improve this document. You can reach me by e-mail:
  33. ferry@chorus.fr or ferry%chorus.fr@mcsun.eu.net
  34.  
  35.  
  36. I'd like to thank the following people for their contributions:
  37. Kent Paul Dolan(xanthian@zorch.sf-bay.org)
  38.         For sending several parts of information for this article.
  39. Richard Gering(rgering@mentor.com)
  40. Edwin Hoogerbeets(ehoogerbeets@watyew.uwaterloo.ca)
  41. Mic Kaczmarczik(mic@emx.utexas.edu) UT Austin Computation Center
  42. Joe Smith(jms@tardis.tymnet.com)
  43.         For his article in c.s.a.games about display modes, I used.
  44. Dan Zerkle(zerkle@iris.eecs.ucdavis.edu)
  45.  
  46.                               DISCLAIMER
  47. Use the information in this posting at your own risk and cost.
  48. All opinions expressed are mine, not necessarily those of my employer.
  49.  
  50.  
  51. ----------8<----------8<----------8<----------8<----------8<----------
  52.  
  53.               You can find answers to the following questions
  54.  
  55.                                  HARDWARE
  56. 1.1. Why does my battery backup-ed clock not work properly?
  57. 1.2. What are the 8520's?
  58. 1.3. What hardware is broken and can I repair it myself?
  59. 1.4. During a boot or RESET the screen changes. What does this mean?
  60. 1.5. Can I replace the 68000 with an 68010 to get a higher performance?
  61. 1.6. What is the difference between the A2000 and the B2000?
  62. 1.7. What is the difference between al these kinds of memory?
  63. 1.8. On boot time on an AMIGA 2000 the first key pressed isn't read.
  64. 1.9. What is done upon boot time?
  65. 1.10.What display modes are there?
  66.  
  67.                                  SOFTWARE
  68. 2.1. Who is Fred Fish and what are the AmigaLibDisks?
  69. 2.2. What is CATS and how do I become a developer?
  70. 2.3. What are RKM's?
  71.  
  72.                                COMMUNICATION
  73. 3.1. How can I exchange disks between a UNIX system and the AMIGA?
  74. 3.2. How can I post articles if I'm not on usenet?
  75. 3.3. How can I read the comp.sys.amiga.* newsgroups when I'm not on usenet?
  76. 3.4. How can I ftp by mail?
  77. 3.5. What file transfer protocols are there for a modem?
  78. 3.6. In what forms can files be transferred if I load them with my modem?
  79. 3.7. How does ftp work and what is the contents of several sites?
  80.  
  81.  
  82.  
  83.  
  84.  
  85.                      Answers about HARDWARE questions.
  86.  
  87.      1.1.    Why does my battery backup-ed clock not work properly?
  88.  
  89. Symptoms:      1. Clock is several minutes/hours early/late.
  90.                2. Clock is RESET to first day of the AMIGA's life.
  91.                3. Clock can't be read from and written to.
  92.  
  93. The battery backup-ed clock draws its power during power-off of  the  AMIGA
  94. from  a  small  NiCd-battery.  There are two often occuring reasons for the
  95. strange behaviour of the clock:
  96.  
  97.      1. The battery is (almost) empty. This  should  normally  only  happen
  98.      after a very long power-off of the AMIGA. (Several weeks/months.)
  99.      2. The battery is old and can't supply the clock with the  voltage  or
  100.      current it needs to operate properly.
  101.  
  102. To solve the problem in the first case you should turn your  AMIGA  on  for
  103. several  hours to allow the battery to recharge. After this you can set the
  104. setclock command and everything should work OK.
  105.  
  106. The solution in the second case is to have the battery checked and replaced
  107. by your AMIGA dealer.
  108. In the third case your computer might be infected by a virus that puts some
  109. date  in  the  Clock memory that makes it no longer respond. If you execute
  110. the command:
  111.                setclock opt reset
  112. everything should work normal again. NB. Use the setclock from  your  Work-
  113. bench V1.2, the V1.3 version might not work always.
  114.  
  115.      1.2.    What are the 8520's?
  116.  
  117. The 8520 is a chip inside the AMIGA. In the 500/1000/2000 there are two  of
  118. them. They are custom chips of the company that designed and built the AMI-
  119. GA.
  120.  
  121.      1.3.    What hardware is broken and can I repair it myself?
  122.  
  123. Symptoms:      Printer doesn't work properly anymore.
  124.                Audio sampler produces one constant or random values.
  125.                Modem doesn't work properly anymore.
  126.                Joy-sticks seem not to be working.
  127.  
  128. All the previous mentioned devices are driven by the  two  8520's  in  your
  129. AMIGA.  These  are very delicate chips and history has proven that they are
  130. very fragile. It might well be the case that one of them is broken. You can
  131. check this by exchanging them inside your AMIGA. (They are both socket-ed.)
  132. ONLY do this (Opening the AMIGA isn't allowed during the guarantee period!)
  133. if you know what you are doing. If exchanging does make a difference one of
  134. them is broken and you can replace the broken chip by a new  one.  You  can
  135. buy  them  only at certain places eg. at your dealer. They cost about $10,-
  136. $15,- a piece.
  137. If you don't want to repair the machine yourself, bring your computer to  a
  138. qualified repair company.
  139.  
  140.      1.4.    During a boot or RESET the  screen  changes.  What  does  this
  141.      mean?
  142.  
  143. To indicate problems detected within the hardware, the screen is changed to
  144. one of the following colours: [See also question 1.9..]
  145.  
  146.         Colour     Diagnostic
  147.       dark gray    Hardware OK
  148.       light gray   Software OK
  149.       blue         Bad Custom Chips
  150.       green        Bad CHIP RAM
  151.       red          Checksumerror ROM (Bad ROM)
  152.       yellow       exception before a GURU-meditation could be given
  153.  
  154.      1.5.    Can I replace the 68000 with an 68010 to get a higher  perfor-
  155.      mance?
  156.  
  157. Yes, in general you can replace the 68000 with an 68010. It is an operation
  158. that  needs  to  be  done with care because they are large chips and aren't
  159. very easy to get out/in the socket.
  160. NB Don't put the 68010 in the socked the wrong way around!
  161. Don't expect to much performance increase. Only programs with a lot of cal-
  162. culation  might  run a bit faster but the overall performance increase will
  163. be less than 5%.
  164.  
  165. Because of bad programming there are several programs that will  stop  run-
  166. ning when you are using a 68010. Keep this in mind.
  167.  
  168.             List of known programs that won't run with an 68010
  169.                        [none]
  170.                                 [Send updates to me]
  171.  
  172.      1.6.    What is the difference between the A2000 and the B2000?
  173.  
  174. Commodore in Braunschweig (Germany) has built the A2000 based on the  AMIGA
  175. 1000.  They  added  the slots and 512 KBytes RAM. This was done in order to
  176. allow an XT-card inside the computer.
  177. Later Commodore developed the B2000 which was based  on  the  new  hardware
  178. also  used  in  the  AMIGA 500. It has 1 MByte of RAM and is prepared for 1
  179. MByte of CHIP RAM.
  180.  
  181. Both have the same case but are completely different inside. Also,  from  a
  182. software point of view small differences might be discovered.
  183.  
  184.      1.7.    What is the difference between al these kinds of memory?
  185.  
  186. These are the most common terms used that have to do with memory:
  187.  
  188. Autoconfig RAM    Memory that is available and known to the system  as  you
  189. power  on  the machine. This means that you don't have to execute a program
  190. to let the operating system know this memory is available.
  191. On the other hand
  192.  
  193. NonAutoconfig RAM needs to be made available, which is  usually  done  with
  194. programs like AddMem and AddRAM. With these you are telling the OS where in
  195. the addressing space the memory board can be found.
  196.  
  197. Public RAM        [Good explanation needed.]
  198.  
  199. FAST RAM          is any RAM out of the reach of the custom chips.   It  is
  200. known  as  FAST  RAM because code and data may be accessed by the CPU there
  201. faster, as it does not have to deal with the bus contention in the CHIP RAM
  202. addressing space.
  203. On the
  204.  
  205. CHIP RAM bus, time has to be shared by both the processor  and  the  custom
  206. chips.  If  the  custom chips are very active at a given time, the CPU must
  207. wait for the bus to be free for it's use. [Some activities  of  the  custom
  208. chips  can  'cycle  steal'  from the CPU, causing it to be forced to wait.]
  209. Normally, the 680x0 on the Amiga only needs the bus every  alternate  clock
  210. cycle in order to run full speed...thus the other cycles not used are taken
  211. up by the custom chips. However, when the blitter is in use, or the  copro-
  212. cessor  (COPPER), you see some of this cycle stealing. As a result, the CPU
  213. can usually run quite close to full speed on the CHIP RAM bus, but there is
  214. almost  always  some  activity which slows it down a bit. And of course any
  215. heavy graphics use will cause considerable slowing if the CPU is forced  to
  216. run code out of the CHIP RAM area.
  217. Now, with FAST RAM on the system, the CPU can  generally  run  full  speed,
  218. provided  the  code/data  being accessed is in FAST RAM, because the custom
  219. chips cannot access this memory medium, and are not using it's bus.
  220.  
  221. 32 bit RAM        There is no difference in the chips themselves.  What  IS
  222. different  is  how  they  are accessed. On a 16 bit bus (16-bit memory), 16
  223. bits of data can be operated on at one time  (transferred  about,  etc...).
  224. The  32-bit  bus  can  work with 32-bits of data at a time. Thus if you are
  225. running two different buses...on 16-bit and one 32-bit, the 32-bit bus  can
  226. handle  more  data at a given interval (assuming appropriate processors for
  227. each and equivalent bus speeds). This is handled at the interface logic and
  228. bus level, not within the memory chips themselves.
  229.  
  230. RAM waitstates    You will run into having  to  have  wait  states  if  the
  231. memory being utilized is slower than the speed at which the processor needs
  232. it to come back. For instance, FAST RAM on the  A2000  (68000)  is  usually
  233. rated  at  120-100ns...this is perfectly fine for zero-wait state operation
  234. on that bus. The processor is incapable of "asking for" the data  any  fas-
  235. ter.  Putting  80ns memory here would be a waste of money, as the processor
  236. will not be able to access it any faster. [The processor/bus is running  at
  237. a  certain speed. It will not speed up for faster memory]. Now, if you were
  238. to put 200ns parts on a FAST RAM expansion board, you  would  have  to  put
  239. some wait states into that.
  240.  
  241. FastMemFirst      Memory on the Amiga is prioritized.  Now,  normally  CHIP
  242. RAM  is  given a priority on the system of -10. This is to insure it is not
  243. used by programs requesting simply "I want a chunk of memory", and not say-
  244. ing  "and  it  needs to be CHIP". This helps to prevent CHIP RAM from being
  245. used for things which do not need to be there.
  246. Now, FastMemFirst is special. On Amigas with 512KBytes  of  CHIP  RAM,  the
  247. other 512KBytes which make up the 1 MByte std. complement is what is called
  248. "SLOW-FAST" RAM. This is because, while the custom chips cannot use it,  it
  249. is  still  subject  to the bus contention for CHIP RAM, as it is in fact on
  250. that bus. [When you upgrade to the 1-MByte Agnus, this  "SLOW-FAST"  memory
  251. is what becomes the other 512KBytes of CHIP RAM.] FastMemFirst is useful if
  252. you have this "SLOW-FAST" memory, and also have true  FAST  memory  on  the
  253. system.   What  it  does  is  place your "SLOW-FAST" memory at the same -10
  254. priority as CHIP RAM. Since most true FAST RAM will default to  a  priority
  255. of  0,  it places your true FAST RAM ahead of the CHIP and SLOW-FAST memory
  256. on the memory lists. This is so programs which do not need to use CHIP  RAM
  257. (and  a  program's actual CODE never does for the most part) will be placed
  258. in you FAST RAM, and run somewhat faster. SLOW-FAST and CHIP will  only  be
  259. used when either requested specifically by a program, or when your FAST RAM
  260. is filled.
  261.  
  262.      1.8.    On boot time on an AMIGA 2000  the  first  key  pressed  isn't
  263.      read.
  264.  
  265. This can be caused by the fact that the computer thinks that a special  key
  266. is  being  held  down.  E.g.  CTRL  or LEFT-A, in the last case the m and n
  267. (LEFT-A n and m swap screens.) won't work. This can be solved  by  pressing
  268. the CTRL or LEFT-A key yourself.
  269. To permanently solve the problem it might be needed to adjust the  computer
  270. hardware.  (Cutting  two capacitors on the motherboard.) Your dealer should
  271. be able to help you with this.
  272.  
  273.      1.9.    What is done upon boot time?
  274.  
  275. The following things are done: [See also question 1.4..]
  276.                  Clear Chips
  277.                  Disable DMA and Interrupts
  278.                  Clear the Screen
  279.                  Check the Hardware
  280.                  Pass or fail the Hardware to the Screen
  281.                  Checksum the ROMs
  282.                  Pass or fail the ROMs to the Screen
  283.                  System setup
  284.                  Check the for RAM at $C00000
  285.                  Move SYS_BASE to $C00000 if it exists
  286.                  RAM Test
  287.                  Pass or fail the RAM to the Screen
  288.                  Check the Software
  289.                  Pass or fail the Software to the Screen
  290.                  Set up the RAM
  291.                  Link the Libraries
  292.                  Find External RAM and link it to the list
  293.                  Set up Interrupts and DMA
  294.                  Start default Task
  295.                  Check for 68010, 68020, and 68881
  296.                  Check for an Exception
  297.                  System Reset
  298.  
  299.      1.10.   What display modes are there?
  300.  
  301.           Mode             NTSC       PAL    E  HF   #C
  302.          Lores           320x200   320x256   -  15K   32 4096
  303.   Lores-ExtraHalfBrite   320x200   320x256   *  15K   64 4096  (restricted)
  304.        Lores-HAM         320x200   320x256   -  15K 4096 4096  (restricted)
  305.          Hires           640x200   640x256   -  15K   16 4096
  306.       Super-Hires        1280x200  1280x256  +  15K    4   64  (35 ns)
  307.     Lores-Interlaced     320x400   320x512   -  15K   32 4096
  308.   Lores-EHB-Interlaced   320x400   320x512   *  15K   64 4096  (restricted)
  309.   Lores-HAM-Interlaced   320x400   320x512   -  15K 4096 4096  (restricted)
  310.     Hires-Interlaced     640x400   640x512   -  15K   16 4096
  311.  Super-Hires-Interlaced  1280x400  1280x512  +  15K    4   64  (35 ns)
  312.      VGA-ExtraLores      160x480   160x480   +  31K   32 4096
  313.        VGA-Lores         320x480   320x480   +  31K   16 4096
  314.       Productivity       640x480   640x480   +  31K    4   64
  315. VGA-ExtraLores-Interaced 160x960   160x960   +  31K   32 4096
  316.   VGA-Lores-Interlaced   320x960   320x960   +  31K   16 4096
  317. Productivity-Interlaced  640x960   640x960   +  31K    4   64
  318.        A2024-10Hz        1008x800  1008x1024 -  sp.    4   16  (gray)
  319.        A2024-15Hz        1008x800  1008x1024 -  sp.    4   16  (gray)
  320.  
  321. Notes:
  322.      - E stands for ESC.
  323.      - HF stands for HFrequency.
  324.      * Some early A1000's did not have ExtraHalfBrite. It is  easy  to  up-
  325.      grade.
  326.      * The 2nd 32 colours of EHB mode are restricted. They are the same  as
  327.      the  first  32 colours with the red, green, and blue values reduced to
  328.      one half.
  329.      * HAM mode (Hold And Modify  mode)  allows  all  4096  colours  to  be
  330.      displayed, but has restrictions affecting adjacent pixels of differing
  331.      colours.
  332.  
  333.                        Answers about SOFTWARE questions.
  334.  
  335.      2.1.    Who is Fred Fish and what are the AmigaLibDisks?
  336.  
  337. The AmigaLibDisks are disks with public-domain software and shareware  pro-
  338. grams  (If possible with sources.) assembled by Fred Fish.  It is the larg-
  339. est set of public-domain disks available for the AMIGA. You can  find  hun-
  340. dreds  of  utilities  and games on these disks often with their sources in-
  341. cluded.
  342. The contents of these disks can be found on the same sites mentioned in the
  343. following paragraph, in the magazine Amazing Computing and with the Aquari-
  344. um database program (FishDisk #???).
  345. These   disks   are   available   from   Fred   Fish   (See   postings   in
  346. comp.sys.amiga.announce.) and are available by anonymous ftp on the follow-
  347. ing sites:
  348.                   Name           Address         Directory
  349.             ux1.cso.uiuc.edu   128.174.5.59   amiga/fish/ff***
  350.             etana.tut.fi       128.214.1.1
  351.  
  352.      2.2.    What is CATS and how do I become a developer?
  353.  
  354. CATS stands for Commodore Applications and Technical Support.
  355. (CATS) provides technical support to Amiga developers.   This  is  provided
  356. through a number of channels, including network suppport, phone support for
  357. commercial developers, and technical documentation.
  358.  
  359. CATS-Admin
  360. 1200 Wilson Drive
  361. West Chester, PA  19380
  362.  
  363. Ask for information on the developer support program if you want to  become
  364. an developer.
  365. There are two developer levels, both require that you be working on a  pro-
  366. duct that you believe will make it to market.
  367. Developer status  includes  a  subscription  to  AmigaMail  (our  technical
  368. newsletter), access to beta software, access to developers conferences, and
  369. access to closed conferences on BIX.  Commercial status also includes phone
  370. support.
  371.  
  372.      Certified Developer, $75/year, no phone  support,  no  other  require-
  373.      ments.  $25 signup cost.
  374.  
  375.      Commercial Developer, $450/year, phone support, requires that you have
  376.      an existing product on the market. $50 signup cost.
  377.  
  378.      2.3.    What are RKM's?
  379.  
  380. RKM stands for ROM Kernel Reference Manual. The RKM's are part of  a  serie
  381. of books describing the Amiga's Hardware and OS Software in detail. You can
  382. buy (or order) them in any bookstore.
  383.  
  384.      Amiga ROM Kernel Reference Manual:  Libraries and Devices
  385.      Addison Wesley, Dec 1989, ISBN 0-201-18187-8
  386.      Amiga ROM Kernel Reference Manual:  Includes and Autodocs
  387.      Addison Wesley, Jan 1989, ISBN 0-201-18177-0
  388.      Amiga Hardware Reference Manual
  389.      Addison Wesley, Sept 1989, ISBN 0-201-18157-6
  390.  
  391.                   Answers about COMMUNICATION questions.
  392.  
  393.      3.1.    How can I exchange disks between a UNIX system and the AMIGA?
  394.  
  395. The most common [and only?] way to exchange floppies between a UNIX machine
  396. and the AMIGA is by writing them in MS-DOS format.
  397.  
  398. Programs and utilities for this are:
  399.  
  400. UNIX utilities:
  401.      MTOOL          (Available via anonymous ftp at:)
  402.           Name              Address                   Directory
  403.    gatekeeper.dec.com    16.1.0.2        pub/comp.sources.misc/*11/*mtools/*
  404.    cerl.cecer.army.mil   129.229.1.101   pub/mtools/* [Version 2.0.3]
  405.      Usage:
  406.      1) Log into a SUN 3/80 or SPARCstation and add the directory of mtools
  407.      to your path:
  408.                         set path = ($path [path to mtools]) ; rehash
  409.  
  410.      2) Insert a floppy into the drive. To format the disk at  high-density
  411.      and install an MS-DOS file system on it, type:
  412.                         mkdfs -f -h
  413.      If you want to use a low-density 720K disk instead (what you  normally
  414.      want if you use if for AMIGA conversion), type:
  415.                         mkdfs -f
  416.      You only need to put a file system on the disk the first time you  use
  417.      it  as an MS-DOS diskette; you definitely want to reformat the disk if
  418.      it has previously been used for another filesystem.
  419.  
  420.      3) To copy files to and from a formatted and initialized  floppy,  use
  421.      the  mcopy  program.  For example, to copy the files file1, file2, and
  422.      file3 to the root of the MS-DOS file system on the floppy, type:
  423.                         mcopy file1 file2 file3 a:/
  424.      To copy a single file on the MS-DOS floppy  to  your  Unix  directory,
  425.      type:
  426.                         mcopy a:/file1 .
  427.      The data in the file is copied AS-IS, with no format translation;  you
  428.      can use the -t option to mcopy to translate text files into the MS-DOS
  429.      notion of a text file, and vice versa.
  430.  
  431.      4) You can use the mdir command to list files on the MS-DOS floppy
  432.                         mdir
  433.  
  434.      5) You can also remove files
  435.                         mdel mdsos-filename
  436.  
  437.      6) To eject the disk, type:
  438.                         eject [Not part of mtools but a SUNOS command.]
  439.  
  440.  
  441. AMIGA utilities:
  442.      Dos2dos:           (Available as a commercial product)
  443.      MSH(messydos):     (Available on FishDisk #382)
  444.  
  445.      This is a utility that gives you the needed files and programs so  you
  446.      can  add  a device to your Mountlist which makes any floppy drive use-
  447.      able with MS-DOS formatted disks.
  448.  
  449.      3.2.    How can I post articles if I'm not on usenet?
  450.  
  451. You can send news to all seven main newsgroups (comp.* rec.*  misc.*  etc.)
  452. by sending it to:
  453.  
  454.                news-group-name@ucbvax.berkeley.edu
  455.  
  456. where news-group-name is the groupname with the character  '-'  instead  of
  457. the '.'.
  458. For example to send something to misc.forsale.computers, e-mail it with:
  459.  
  460.                mail misc-forsale-computers@ucbvax.berkeley.edu
  461.  
  462. At the moment it is not yet possible to send an article to the new  created
  463. newsgroups in comp.sys.amiga.*. Please be patient.
  464. Note that these addresses should *not* be used for (un)subscribe  messages.
  465. [See question 3.3..]
  466.  
  467.      3.3.    How can I read the comp.sys.amiga.* newsgroups when I'm not on
  468.      usenet?
  469.  
  470. You can (un)subscribe to an amiga newsgroup by sending e-mail to:
  471.  
  472.                news-group-name-request@ucbvax.berkeley.edu
  473.  
  474. where news-group-name is the groupname with the character  '-'  instead  of
  475. the  '.'. And where the subject (and body) of the message contains the text
  476. "subscribe" of "unsubscribe". (Without the quotes!)
  477. For example to subscribe to comp.sys.amiga.introduction, e-mail it with:
  478.  
  479.                mail comp-sys-amiga-introduction-request@ucbvax.berkeley.edu
  480.  
  481. At the moment it is not yet possible to send an  (un)subscribe  request  to
  482. the new created newsgroups in comp.sys.amiga.*. Please be patient.
  483.  
  484.      3.4.    How can I ftp by mail?
  485.  
  486. If don't have ftp access you  can  send  mail  to  a  special  server  that
  487. processes  the  ftp  commands  in  your mail message and sends you back the
  488. result, also in mail messages.  For an explanation send mail to:
  489.  
  490.                BITFTP@PUCC.Princeton.edu
  491. With a subject line containing the text Help. This will send  you  informa-
  492. tion.
  493.  
  494.      3.5.    What file transfer protocols are there for a modem?
  495.  
  496. The absolutely simplest way for an executable file to come  to  you  is  in
  497. raw, binary mode, exactly the file you want to execute. This is most unusu-
  498. al. Normally they are converted [See question 3.6..].
  499. To download such a file, you have  to  start  getting  concerned  with  the
  500. method  you use to download it, called the protocol, since many (most) com-
  501. munications lines are not directly capable of  transporting  a  raw  binary
  502. file.  (They  tend  to use some of the possible bit combinations as control
  503. signals for the line software and hardware.)
  504.  
  505. Here are some protocols your terminal program may support:  ASCII,  xmodem,
  506. ymodem, zmodem, umodem, kermit. (There are others.)
  507.  
  508. ASCII protocol is used to transmit only  printable  characters.  The  eight
  509. bits  that  form a character can represent decimal integer values from zero
  510. to two hundred fifty five. The printable ones are the ones from 32  (space)
  511. to  126  (tilda), plus the codes for tab, newline, and carriage return (the
  512. latter only in older systems). This won't work for raw binary data, whether
  513. your executable files or other kinds of binary.
  514.  
  515. The x,y,z,u-modem protocols are a family of ever  more  capable  protocols,
  516. which are capable (with some tricks you can ignore) of transmitting all 256
  517. possible  character  values.  One,  xmodem,  is  not  especially  good  for
  518. transmitting  executable  Amiga  programs, though. It is left over from the
  519. days of the old CP/M operating system, when all  files  were  allocated  in
  520. blocks  of 128 bytes (characters), with a special code in the last block at
  521. the correct point after the last data character (byte) to indicate the  end
  522. of  file,  and junk after that mark filling out the rest of the block. This
  523. extra junk makes the Amiga executable program loader  program  "sick",  be-
  524. cause  it does "scatter loading" (puts parts of programs in parts of memory
  525. that don't necessarily "touch"), and it tries to  interpret  the  junk  (it
  526. doesn't  know  about  the old CP/M file format) as scatter loading instruc-
  527. tions. This problem with xmodem can be one of the reasons a file you  down-
  528. load doesn't "work" after it is downloaded.
  529. The next difficulty can come because these programs are written to do  file
  530. transfers among both MS-DOS and Unix computers. It happens that, for print-
  531. ed text, many older systems, including the  IBM-PC  MS-DOS  ones,  use  two
  532. characters  (carriage  return,  line  feed)  to indicate the end of a line,
  533. while newer systems, including Unix and AmigaOS,  use  a  single  character
  534. (now  called "newline", but the same code as the old line feed) to indicate
  535. the end of a line. To "simplify" transferring text files, the x,y,z,u-modem
  536. and kermit transfer protocols automatically translate the two characters to
  537. the one character when copying files  between  certain  systems,  and  this
  538. translation  is the _default_ operation of these protocols. In each one, to
  539. transfer an archive (below) or an executable file, you have to do  whatever
  540. is  appropriate  to  the  protocol  to specify *binary* or *image* transfer
  541. mode.
  542.  
  543.      3.6.    In what forms can files be transferred if I load them with  my
  544.      modem?
  545.  
  546. To make it easier to transfer files they might be stored in  special  ways.
  547. For  example  with  only  printable  characters. (For ASCII transfer.) More
  548. often several program are packed together in a special large archive to  be
  549. able to transfer them in one go.
  550.  
  551. Because so many older communications systems had trouble  transferring  raw
  552. binary  data, there are a couple of ways to translate raw binary files into
  553. (bigger) printable files, move the printable files from computer to comput-
  554. er  until  at the destination or the next host above it, and then translate
  555. the printable data back to raw binary data. There are two  common  transla-
  556. tion pairs:
  557.                            uuencode <-> uudecode
  558.                                btoa <-> atob
  559. you will rarely see the latter, even though it is a few percent more  effi-
  560. cient.
  561.  
  562. You can recognize a uuencoded (and now printable) file, often embedded in a
  563. larger file such as a news article, by a first line like:
  564.  
  565.                             begin nnn filename
  566.  
  567. where "nnn" is some three digit octal number for the Unix  file  protection
  568. bits to apply to the back-translated raw binary file, and "filename" is the
  569. name the file should have when it is translated back to  binary.  Sometimes
  570. there  are  two  lines  ahead of this one with the keyword "table" and some
  571. characters that require special care when transporting a  file  from  ASCII
  572. machines  to EBCDIC (IBM mainframe) machines, but again, except for includ-
  573. ing it in what you pass to the uudecode program, you can ignore  this  most
  574. times.
  575.  
  576. Where the uuencoded file is not part of a larger file, it will  almost  al-
  577. ways  have  a  name  ending  in  either "uu" or "uue" (depending on a minor
  578. difference in which flavor of uuencode is used to create it  -  ignorable);
  579. more on this below.
  580.  
  581. Three other considerations affect the way you find a file packaged.  First,
  582. files contain lots of "redundant" information, which causes them to take up
  583. a larger than necessary amount of  storage  space  and  transfer  time.  So
  584. called  "compression" programs attempt to squeeze files into less space us-
  585. ing various tricks. In almost every case, the  output  is  a  smaller,  raw
  586. binary file which is not executable. Common programs used to compress files
  587. that you might want to transfer to the Amiga for your use are:
  588.  
  589.                           compress <-> uncompress
  590.                                     arc
  591.                                     zoo
  592.                                    lharc
  593.                                   lhwarp
  594.                                   pkazip
  595.  
  596. Second, files often occur in groups, which should be kept together, such as
  597. the  source,  documentation,  executable, icon, data, and control files for
  598. the same program. Many archive methods exist to group many small files into
  599. one larger file. Ones you are likely to encounter trying to get software to
  600. your Amiga are:
  601.  
  602.                               shar <-> unshar
  603.                                     arc
  604.                                     zoo
  605.                                    lharc
  606.                                   lhwarp
  607.                                   pkazip
  608.  
  609. Third, groups of files often have some (tree shaped) file  structure,  just
  610. like  the  directory  of  your  disk, which you would like to preserve from
  611. where the files are packaged in an archive to where they are unpackaged for
  612. use.  Archive methods that can recreate a directory structure that you will
  613. encounter are:
  614.  
  615.                         shar <-> unshar (sometimes)
  616.                                     zoo
  617.                                    lharc
  618.         lhwarp (it actually packages a whole floppy disk trackwise)
  619.  
  620. Moreover, combinations of the various packaging methods can be used;  among
  621. the most common combinations are:
  622.  
  623. FILES -> uuencode -> shar -> TRANSFER -> unshar -> uudecode -> USE
  624.  
  625. FILES -> shar -> compress -> TRANSFER -> uncompress -> unshar -> USE
  626.  
  627. FILES -> arc -a -> uuencode -> TRANSFER -> uudecode -> arc -x -> USE
  628.  
  629. FILES -> zoo a -> uuencode -> TRANSFER -> uudecode -> zoo e// -> USE
  630.  
  631. FILES -> lharc a -> uuencode -> TRANSFER -> uudecode -> lharc x -> USE
  632.  
  633. normally, shar files have names ending in  .sh,  compressed  files  in  .Z,
  634. compressed uuencoded files in .Z.uu (or .Z.uue), arced files in .arc, arced
  635. uuencoded files in .arc.uu, (or rarely .auc), zooed files  in  .zoo,  zooed
  636. uuencoded  files in .zuu, lharced files in .lzh, lharced uuencoded files in
  637. .lzh.uu, lhwarped files in .lzw, and pkazipped files in .zip.
  638.  
  639. Since the uuencoded file includes the other file's name, sometimes the com-
  640. pound names like .arc.uu are not used and just .uu is used instead.
  641. So if you have one of the news articles with a uuencoded file in  it,  your
  642. first step, on your host system, is to edit it and cut off the news article
  643. header and any introductory material, and any signature file at the end. If
  644. the  file  was  published  in several news articles (many comp.binary.amiga
  645. file archives are), you have to trim the trash off all the  articles,  then
  646. join the files that result into one file. On a Unix system, this is done by
  647. saying something like:
  648.      cat filename1 filename2 filename3 > wholefilename.uu
  649. while on an Amiga, this would be done by saying:
  650.      join filename1 filename2 filename3 as wholefilename.uu
  651. instead.
  652.  
  653. When you have a file that starts with (the  optional  table  and)  a  begin
  654. line, and ends with an end line, you can then say, on a Unix system:
  655.      uudecode wholefilename.uu
  656. and it will create a file with whatever name and permissions are on the be-
  657. gin  line, while, if you have the Amiga uudecode program, it works just the
  658. same, but the permissions are ignored (they're wrong for an Amiga).
  659.  
  660. While if the file was instead a shar file, you would have started with:
  661.      unshar filename
  662. perhaps after trimming off the news header depending upon how  clever  your
  663. unshar program is. This is the usual way to do the comp.sources.amiga arti-
  664. cles.
  665.  
  666. If you are still on your host system, you will either have, if  uudecoding,
  667. created  (normally)  a .zoo or .lzh file, or, if unsharing, created a (sub-
  668. directory tree) of files. If the latter, and your host site has zoo or  the
  669. Unix  lharc patched for the Amiga, get in the top directory created by/from
  670. the shar, and say either:
  671.      find * -print | zoo aI somefilename.zoo
  672. or
  673.      lharc aA *
  674. to make respectively a .zoo or .lzh archive of all the files.
  675.  
  676. Transfer it to your machine using one of y,z,umodem or  kermit,  in  binary
  677. mode.
  678.  
  679. Use the zoo or lharc program from the directory/disk  where  you  want  the
  680. program files to live, like
  681.      zoo e// pathtofile/somefilename.zoo
  682. or
  683.      lharc -x -m x pathtofile/somefilename.lzh
  684. (for files packed on a Unix system, or
  685.  
  686.      lharc -a -x -m x pathtofile/somefilename.lzh
  687. for files packaged on an Amiga).
  688.  
  689. You can find all of the programs and documentation for  them  on  the  Fred
  690. Fish public domain software collection. [See question 2.1..]
  691.  
  692.      3.7.    How does ftp work and what is the contents of several sites?
  693.  
  694. For an explanation of ftp(1) see the UNIX manualpages. The basic operations
  695. are:
  696.   o 128.174.5.59 [Make connection with host 128.174.5.59]
  697.   [asks for Name]anonymous
  698.   [asks for passwd/Here you should type your e-mail address]myname@mysite
  699.   binary [For transfering programs etc.]
  700.   ls [Directory contents]
  701.   cd newdirectory
  702.   get filename [Copy the file to your machine.]
  703.   close [End the connection with the other machine.]
  704.   bye [Exit ftp.]
  705.  
  706. Remember that anonymous ftp is a service, use it only during off-work hours
  707. or during week-ends.
  708.  
  709. A list of anonymous ftp sites with their contents is  regularly  posted  in
  710. comp.misc.
  711. ----------8<----------8<----------8<----------8<----------8<----------
  712.  ___  ___  ___   ___  _  _   _    _
  713. (  _)(  _)(  ,) (  ,)( \/ )|( \/\/ )riting software takes twice as long
  714.  ) _) ) _) )  \  )  \ \  / | \    /        as you expect it to take...
  715. (_)  (___)(_)\_)(_)\_)(_/  |  \/\/     Even if you keep this in mind!
  716. e-mail: ferry@chorus.fr or ferry%chorus.fr@mcsun.eu.net
  717.  
  718.